package com.rykj.qxj.server.dao;

import com.rykj.qxj.server.common.ZmanagerBaseMapper;
import com.rykj.qxj.server.model.entity.AuditRecord;
import com.rykj.qxj.server.model.entity.MetadataElement;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AuditManageMapper extends ZmanagerBaseMapper<AuditRecord> {

    List<Map<String,Object>> getAuditRecordList(Map<String,Object> paraMap);

    Map<String,Object> getAuditRecordDetails(Integer auditId);

    void updateAuditStatus(Map<String, Object> paraMap);

    void saveAuditRecord(AuditRecord auditRecord);

    void saveAuditField(@Param("auditFields") List<Map<String, Object>> auditFields);

    void saveNewFieldRule(Integer auditId);

    void saveNewFieldTask(Integer auditId);

    void updateAuditStatusById(Map<String, Object> paraMap);
}
